enqueueScripts([function(){ (window.webpackJsonpvtex_react_vtexid_4_67_1=window.webpackJsonpvtex_react_vtexid_4_67_1||[]).push([["useSetPassword"],{0:function(e,t){e.exports=React},111:function(e,t,r){"use strict";r.r(t),function(e){var t=r(6);r.p=Object(t.getPublicPath)("vtex.react-vtexid@4.67.1");var n=Object(t.register)((function(){return r(142)}),e,"vtex.react-vtexid@4.67.1","vtex.react-vtexid@4.x","useSetPassword");n.renderHotReload,n.setupHMR}.call(this,r(20)(e))},14:function(e,t,r){"use strict";var n=r(3),a=r.n(n),o=r(5),u=r(4),s=r(0),i=r(8),c=r(7);t.a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.onSuccess,d=void 0===n?i.a:n,l=r.onFailure,p=void 0===l?i.a:l,v=r.onFinish,f=void 0===v?i.a:v,b=r.autorun,h=void 0!==b&&b,w=Object(s.useState)(null),O=Object(u.a)(w,2),g=O[0],x=O[1],S=Object(s.useState)(null),j=Object(u.a)(S,2),m=j[0],k=j[1],A=Object(s.useState)(h),_=Object(u.a)(A,2),P=_[0],U=_[1],R=Object(s.useCallback)(e,t),E=Object(s.useCallback)(function(){var e=Object(o.a)(a.a.mark((function e(){var t,r=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(null),U(!0),e.prev=2,e.next=5,R.apply(void 0,r);case 5:return t=e.sent,x(t),k(null),d(t),e.abrupt("return",t);case 12:return e.prev=12,e.t0=e.catch(2),k(e.t0),x(null),p(Object(c.a)(e.t0)),e.abrupt("return",e.t0);case 18:return e.prev=18,U(!1),f(),e.finish(18);case 22:case"end":return e.stop()}}),e,null,[[2,12,18,22]])})));return function(){return e.apply(this,arguments)}}(),[R,p,f,d]);return Object(s.useEffect)((function(){h&&E()}),[h,E]),[E,{value:g,error:m,loading:P}]}},142:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r.n(n),o=r(5),u=r(4),s=r(1),i=r(14),c=r(22),d=r(27),l=s.a.ApiAuthStatus,p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onSuccess,r=void 0===t?s.b:t,n=e.onFailure,p=void 0===n?s.b:n,v=e.autorun,f=void 0!==v&&v,b=e.scope,h=void 0===b?s.a.Scopes.STORE:b,w=e.parentAppId,O=void 0===w?null:w,g=e.actionArgs,x=(g=void 0===g?{}:g).email,S=void 0===x?null:x,j=g.newPassword,m=void 0===j?null:j,k=g.currentPassword,A=void 0===k?null:k,_=g.token,P=void 0===_?null:_,U=g.recaptcha,R=void 0===U?null:U,E=g.useNewLoginAttempt,I=void 0!==E&&E,T=e.loginAttempt,y=(T=void 0===T?{}:T).onTimeout,C=void 0===y?s.b:y,N=T.returnUrl,F=void 0===N?null:N,M=Object(c.a)((function(){return C()}),[C],{parentAppId:O,scope:h}),z=Object(i.a)(function(){var e=Object(o.a)(a.a.mark((function e(){var t,r,n,o,u,i,c,p,v,f,b,w,g,x,j,k=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=k.length>0&&void 0!==k[0]?k[0]:{},r=t.email,n=void 0===r?S:r,o=t.newPassword,u=void 0===o?m:o,i=t.currentPassword,c=void 0===i?A:i,p=t.token,v=void 0===p?P:p,f=t.recaptcha,b=void 0===f?R:f,w=t.useNewLoginAttempt,!(void 0===w?I:w)){e.next=7;break}return e.next=4,Object(d.a)(h);case 4:return g=e.sent,e.next=7,M({fingerprint:g,email:n,returnUrl:F});case 7:return e.next=9,s.c.setPassword({login:n,newPassword:u,currentPassword:c,accesskey:v,recaptcha:b,parentAppId:O});case 9:if(e.t0=e.sent,e.t0){e.next=12;break}e.t0={authStatus:"UnexpectedError"};case 12:if(x=e.t0,(j=x.authStatus)===l.Success){e.next=16;break}throw{authStatus:j};case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),[S,m,A,P,R,I,O,h,M,F],{onSuccess:r,onFailure:p,autorun:f}),B=Object(u.a)(z,2),D=B[0],H=B[1],J=H.error,L=H.loading;return[D,{error:J,loading:L}]};t.default=p},21:function(e,t){e.exports=regeneratorRuntime},22:function(e,t,r){"use strict";var n=r(0),a=r(9),o=r(11),u=r(1),s=o.a.SessionDuration;t.a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.scope,c=void 0===i?o.a.Scopes.STORE:i,d=r.parentAppId,l=void 0===d?null:d,p=r.useOAuthPopup,v=void 0!==p&&p,f=Object(a.useRuntime)(),b=f.account,h=Object(n.useRef)(),w=Object(n.useCallback)(e,t);return Object(n.useCallback)((function(e){var t=e.fingerprint,r=void 0===t?null:t,n=e.email,a=void 0===n?null:n,o=e.returnUrl,i=void 0===o?null:o;return clearTimeout(h.current),h.current=setTimeout((function(){return w()}),s),u.c.startSession({accountName:b,returnUrl:i,scope:c,user:a,fingerprint:r,parentAppId:l,useOAuthPopup:v})}),[b,c,l,v,w])}},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(2),a={NetworkError:n.c,BlockedUser:n.a,WrongCredentials:n.i,InvalidMFAToken:n.i,InvalidRecaptcha:n.b,OAuthError:n.d,ThrottledError:n.f,PasswordAlreadyUsed:n.e,UnauthorizedUser:n.g},o=r(12);function u(e){if(!e)return new o.a;var t=function(e){if(e)return e.code?e.code:e.response&&"Seu login está bloqueado temporariamente."===e.response.data?"BlockedUser":e.authStatus?e.authStatus:e.response&&e.response.data&&e.response.data.authStatus?e.response.data.authStatus:e.message&&"string"==typeof e.message?e.message.replace(/\s+/g,""):e.response&&403===e.response.statusCode?"UnauthorizedUser":void 0}(e);return t&&a[t]?new(0,a[t])(e.details):new o.a(e.details)}},9:function(e,t){e.exports=__RENDER_8_RUNTIME__}},[[111,"common",1,0]]]); },function(){ (window.webpackJsonpvtex_react_vtexid_4_67_1=window.webpackJsonpvtex_react_vtexid_4_67_1||[]).push([["useStartLoginAttempt"],{0:function(e,t){e.exports=React},113:function(e,t,r){"use strict";r.r(t),function(e){var t=r(6);r.p=Object(t.getPublicPath)("vtex.react-vtexid@4.67.1");var n=Object(t.register)((function(){return r(144)}),e,"vtex.react-vtexid@4.67.1","vtex.react-vtexid@4.x","useStartLoginAttempt");n.renderHotReload,n.setupHMR}.call(this,r(20)(e))},14:function(e,t,r){"use strict";var n=r(3),a=r.n(n),u=r(5),o=r(4),i=r(0),c=r(8),s=r(7);t.a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.onSuccess,l=void 0===n?c.a:n,d=r.onFailure,p=void 0===d?c.a:d,v=r.onFinish,f=void 0===v?c.a:v,b=r.autorun,O=void 0!==b&&b,g=Object(i.useState)(null),h=Object(o.a)(g,2),j=h[0],m=h[1],S=Object(i.useState)(null),x=Object(o.a)(S,2),_=x[0],w=x[1],A=Object(i.useState)(O),k=Object(o.a)(A,2),R=k[0],U=k[1],E=Object(i.useCallback)(e,t),T=Object(i.useCallback)(function(){var e=Object(u.a)(a.a.mark((function e(){var t,r=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(null),U(!0),e.prev=2,e.next=5,E.apply(void 0,r);case 5:return t=e.sent,m(t),w(null),l(t),e.abrupt("return",t);case 12:return e.prev=12,e.t0=e.catch(2),w(e.t0),m(null),p(Object(s.a)(e.t0)),e.abrupt("return",e.t0);case 18:return e.prev=18,U(!1),f(),e.finish(18);case 22:case"end":return e.stop()}}),e,null,[[2,12,18,22]])})));return function(){return e.apply(this,arguments)}}(),[E,p,f,l]);return Object(i.useEffect)((function(){O&&T()}),[O,T]),[T,{value:j,error:_,loading:R}]}},144:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r.n(n),u=r(5),o=r(4),i=r(1),c=r(14),s=r(11),l=r(22),d=r(27),p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onSuccess,r=void 0===t?i.b:t,n=e.onFailure,p=void 0===n?i.b:n,v=e.autorun,f=void 0!==v&&v,b=e.scope,O=void 0===b?s.a.Scopes.STORE:b,g=e.parentAppId,h=void 0===g?null:g,j=e.actionArgs,m=(j=void 0===j?{}:j).email,S=void 0===m?null:m,x=e.loginAttempt,_=(x=void 0===x?{}:x).onTimeout,w=void 0===_?i.b:_,A=x.returnUrl,k=void 0===A?null:A,R=Object(l.a)((function(){return w()}),[w],{scope:O,parentAppId:h}),U=Object(c.a)(function(){var e=Object(u.a)(a.a.mark((function e(){var t,r,n,u,o=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.email,n=void 0===r?S:r,e.next=3,Object(d.a)(O);case 3:return u=e.sent,e.abrupt("return",R({fingerprint:u,email:n,returnUrl:k}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),[S,O,R,k],{onSuccess:r,onFailure:p,autorun:f}),E=Object(o.a)(U,2),T=E[0],I=E[1],C=I.error,y=I.loading;return[T,{error:C,loading:y}]};t.default=p},21:function(e,t){e.exports=regeneratorRuntime},22:function(e,t,r){"use strict";var n=r(0),a=r(9),u=r(11),o=r(1),i=u.a.SessionDuration;t.a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=r.scope,s=void 0===c?u.a.Scopes.STORE:c,l=r.parentAppId,d=void 0===l?null:l,p=r.useOAuthPopup,v=void 0!==p&&p,f=Object(a.useRuntime)(),b=f.account,O=Object(n.useRef)(),g=Object(n.useCallback)(e,t);return Object(n.useCallback)((function(e){var t=e.fingerprint,r=void 0===t?null:t,n=e.email,a=void 0===n?null:n,u=e.returnUrl,c=void 0===u?null:u;return clearTimeout(O.current),O.current=setTimeout((function(){return g()}),i),o.c.startSession({accountName:b,returnUrl:c,scope:s,user:a,fingerprint:r,parentAppId:d,useOAuthPopup:v})}),[b,s,d,v,g])}},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),a={NetworkError:n.c,BlockedUser:n.a,WrongCredentials:n.i,InvalidMFAToken:n.i,InvalidRecaptcha:n.b,OAuthError:n.d,ThrottledError:n.f,PasswordAlreadyUsed:n.e,UnauthorizedUser:n.g},u=r(12);function o(e){if(!e)return new u.a;var t=function(e){if(e)return e.code?e.code:e.response&&"Seu login está bloqueado temporariamente."===e.response.data?"BlockedUser":e.authStatus?e.authStatus:e.response&&e.response.data&&e.response.data.authStatus?e.response.data.authStatus:e.message&&"string"==typeof e.message?e.message.replace(/\s+/g,""):e.response&&403===e.response.statusCode?"UnauthorizedUser":void 0}(e);return t&&a[t]?new(0,a[t])(e.details):new u.a(e.details)}},9:function(e,t){e.exports=__RENDER_8_RUNTIME__}},[[113,"common",1,0]]]); },function(){ (window.webpackJsonpvtex_react_vtexid_4_67_1=window.webpackJsonpvtex_react_vtexid_4_67_1||[]).push([["validations"],{118:function(e,t,r){"use strict";r.r(t),function(e){var t=r(6);r.p=Object(t.getPublicPath)("vtex.react-vtexid@4.67.1");var n=Object(t.register)((function(){return r(119)}),e,"vtex.react-vtexid@4.67.1","vtex.react-vtexid@4.x","validations");n.renderHotReload,n.setupHMR}.call(this,r(20)(e))},119:function(e,t,r){"use strict";r.r(t);var n=r(25),c=r(1);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.default=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=x&&w>0&&m.push({normalizedQuantity:w,extraQuantity:w-x,choiceType:O.choiceType,item:Object.assign({name:O.name,sellingPrice:O.price,quantity:w,sellingPriceWithAssemblies:O.price+a(null!==(t=O.children)&&void 0!==t?t:{}),id:O.id},_?{assemblyOptions:_}:{})}),w0?{options:j}:{}))}}catch(e){g.e(e)}finally{g.f()}}var k,Q=r(p);try{for(Q.s();!(k=Q.n()).done;){var q=k.value,A=u[q]||{};Object.keys(A).length>0&&d.push({assemblyId:q,inputValues:u[q]})}}catch(e){Q.e(e)}finally{Q.f()}return{options:d,assemblyOptions:{added:m,removed:f,parentPrice:c}}}function l(e){var t,n,r,i,l,u,c=e.product,s=e.selectedItem,d=e.selectedQuantity,m=e.selectedSeller,f=e.assemblyOptions;return c&&s&&m&&m.commertialOffer?[Object.assign(Object.assign({index:0,id:s.itemId,ean:s.ean,productId:null!==(t=c.productId)&&void 0!==t?t:"",quantity:d,uniqueId:"",detailUrl:"/".concat(c.linkText,"/p"),name:null!==(n=c.productName)&&void 0!==n?n:"",brand:null!==(r=c.brand)&&void 0!==r?r:"",category:c.categories&&c.categories.length>0?c.categories[0]:"",productRefId:null!==(i=c.productReference)&&void 0!==i?i:"",seller:m.sellerId,sellerName:m.sellerName,variant:s.name,skuName:s.name,price:100*m.commertialOffer.PriceWithoutDiscount,listPrice:100*m.commertialOffer.ListPrice,sellingPrice:100*m.commertialOffer.Price,sellingPriceWithAssemblies:100*(m.commertialOffer.Price+a(null!==(l=null==f?void 0:f.items)&&void 0!==l?l:{})),measurementUnit:s.measurementUnit,skuSpecifications:[],imageUrl:null===(u=s.images[0])||void 0===u?void 0:u.imageUrl},o({assemblyOptionsItems:null==f?void 0:f.items,inputValues:null==f?void 0:f.inputValues,parentPrice:m.commertialOffer.Price,parentQuantity:d})),{referenceId:s.referenceId})]:[]}n.d(t,"a",(function(){return l}))}},[[24,"common"]]]); },function(){ !function(e){function n(n){for(var r,u,c=n[0],a=n[1],l=n[2],p=0,s=[];pe.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?"values":"value",' in the props of a component. Please use "phone" and "tablet" in this case.'))}}}(e),{devices:{phone:a(e,["phone","mobile","tablet","desktop"]),tablet:a(e,["tablet","mobile","desktop","phone"]),desktop:a(e,["desktop","tablet","phone","mobile"])},queries:n}},l=function(e){var t=[],n=new Set;return Object.keys(e).forEach((function(o){var i=s(e[o]);Object.keys(i.queries).forEach((function(e){return n.add(e)})),t.push([o,i])})),{inputList:t,queryList:Object(o.a)(n)}}},,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.responsive-values@0.4.2");var o=Object(t.register)((function(){return n(17)}),e,"vtex.responsive-values@0.4.2","vtex.responsive-values@0.x","useResponsiveValues");o.renderHotReload,o.setupHMR}.call(this,n(11)(e))},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n(5),r=n.n(i),u=n(6),c=n(2);t.default=function(e){var t=r()().device,n=Object(u.b)(e),i=n.inputList,a=n.queryList,s=Object(c.b)(a).mediaQueries,l={};return i.forEach((function(e){var n=Object(o.a)(e,2),i=n[0],r=n[1];if(Object.keys(r.queries).length>0){var u=Object(c.a)(s);if(u)return void(l[i]=r.queries[u])}l[i]=r.devices[t]})),l}}],[[16,"common"]]]); },function(){ (window.webpackJsonpvtex_responsive_values_0_4_2=window.webpackJsonpvtex_responsive_values_0_4_2||[]).push([["useResponsiveValue"],[,,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var o=n(4),i=n(0),r=n(3),u={};function a(e){return u[e]||"function"!=typeof(null===window||void 0===window?void 0:window.matchMedia)||(u[e]=window.matchMedia(e)),u[e]}function c(e){var t=Object(r.useState)((function(){var t={};return e.forEach((function(e){var n;t[e]=Boolean(null===(n=a(e))||void 0===n?void 0:n.matches)})),t})),n=Object(i.a)(t,2),u=n[0],c=n[1];return Object(r.useLayoutEffect)((function(){if("function"==typeof(null===window||void 0===window?void 0:window.matchMedia)&&0!==e.length){var t=e.map((function(e){var t=!0,n=a(e);void 0!==u[e]&&null!==u[e]||c((function(t){return Object.assign(Object.assign({},t),Object(o.a)({},e,Boolean(null==n?void 0:n.matches)))}));var i=function(n){t&&c((function(t){return Object.assign(Object.assign({},t),Object(o.a)({},e,n.matches))}))};return null==n||n.addListener(i),function(){t=!1,null==n||n.removeListener(i)}}));return function(){t.forEach((function(e){return e()}))}}}),[JSON.stringify(e),c]),{mediaQueries:Object.entries(u)}}var s=function(e){var t=e.find((function(e){return Object(i.a)(e,2)[1]}));if(t)return Object(i.a)(t,1)[0]}},function(e,t){e.exports=React},,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var o=n(10),i=n(9),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i1?"values":"value",' in the props of a component. Please use "phone" and "tablet" in this case.'))}}}(e),{devices:{phone:c(e,["phone","mobile","tablet","desktop"]),tablet:c(e,["tablet","mobile","desktop","phone"]),desktop:c(e,["desktop","tablet","phone","mobile"])},queries:n}},l=function(e){var t=[],n=new Set;return Object.keys(e).forEach((function(o){var i=s(e[o]);Object.keys(i.queries).forEach((function(e){return n.add(e)})),t.push([o,i])})),{inputList:t,queryList:Object(o.a)(n)}}},,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.responsive-values@0.4.2");var o=Object(t.register)((function(){return n(15)}),e,"vtex.responsive-values@0.4.2","vtex.responsive-values@0.x","useResponsiveValue");o.renderHotReload,o.setupHMR}.call(this,n(11)(e))},function(e,t,n){"use strict";n.r(t);var o=n(5),i=n.n(o),r=n(6),u=n(2);t.default=function(e){var t=i()().device,n=Object(r.a)(e),o=n.devices,a=n.queries,c=Object.keys(a),s=Object(u.b)(c).mediaQueries;if(c.length>0){var l=Object(u.a)(s);if(l)return a[l]}return o[t]}}],[[14,"common"]]]); },function(){ !function(e){function t(t){for(var r,c,u=t[0],a=t[1],l=t[2],s=0,p=[];s